package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.PurchaseList;
import com.atguigu.jxc.entity.PurchaseListGoods;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;

@Mapper
@Component
public interface PurchaseListDao {
    //添加进货单
    void save(PurchaseList purchaseList);

    //查询进货单
    List<PurchaseList> getList(String purchaseNumber, Integer supplierId,Integer state, Date start,Date end);

    //删除进货单
    void deleteById(Integer purchaseListId);
    //修改进货单状态
    void updateState(Integer purchaseListId,int state);
    //通过listId获取
    PurchaseList get(Integer purchaseListId);
    //通过number获取id
    Integer getByNum(String purchaseNumber);
}
